package com.lc.cehui.ui.activity.mine;

import android.view.View;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.lc.cehui.R;
import com.lc.cehui.app.AppActivity;
import com.lc.cehui.http.response.BaseBean;

import java.util.ArrayList;
import java.util.List;

import androidx.annotation.NonNull;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import butterknife.BindView;

public class ResumeSubmittedActivity extends AppActivity {
    @BindView(R.id.recyclerView)
    RecyclerView recyclerView;
    private BaseQuickAdapter adapter;
    @Override
    protected int getLayoutId() {
        return R.layout.activity_resumesubmitted;
    }

    @Override
    protected void initView() {
        recyclerView.setLayoutManager(new LinearLayoutManager(getContext()));
        recyclerView.setAdapter(adapter = new BaseQuickAdapter<BaseBean, BaseViewHolder>(R.layout.item_myresume) {
            @Override
            protected void convert(@NonNull BaseViewHolder baseViewHolder, BaseBean dataBean) {

            }
        });

    }

    @Override
    protected void initData() {
        List<BaseBean> list = new ArrayList<>();
        for (int i = 0; i < 10; i++) {
            list.add(new BaseBean());
        }
        adapter.setNewInstance(list);
        adapter.notifyDataSetChanged();
    }
}
